package com.person.android.domain.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * @autor zhaokang.
 * @time on 2015/12/19.
 */
public class PopupAuthenticator extends Authenticator {

    private String userName;
    private String password;

    public PopupAuthenticator(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(userName, password);
    }
}
